package org.linloong.modules.apis.monitor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.models.security.SecurityScheme;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
@TableName("t_daily_agg_stats")
@Schema(name = "DailyAggStats", description = "每日平均值统计结果")
public class DailyAggStats {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(description = "设备分组ID")
    private String groupId;

    @Schema(description = "设备ID")
    private String deviceId;

    @Schema(description = "传感器指标名称")
    private String sensorName;
    @Schema(description = "指标位置")
    private Integer serial;
    @Schema(description = "统计日期")
    private LocalDate statDate;
    @Schema(description = "传感器单位")
    private String unit; // 新增：传感器单位
    @Schema(description = "当日平均值")
    private BigDecimal avgValue;

    @Schema(description = "参与计算的数据量")
    private int dataCount;

    @Schema(description = "统计生成时间")
    private LocalDate createTime;
}